package com.itlaobing.data;

import java.io.*;

public class DataInputTest1 {

    public static void main(String[] args) throws IOException {

        InputStream in = new FileInputStream("D:/test.data");

        DataInputStream dis = new DataInputStream(in);

        byte b = dis.readByte();
        System.out.println(b);

        short s = dis.readShort();
        System.out.println(s);

        int i = dis.readInt();
        System.out.println(i);

        long l =dis.readLong();
        System.out.println(l);

        float f = dis.readFloat();
        System.out.println(f);

        double d = dis.readDouble();
        System.out.println(d);

        boolean bl = dis.readBoolean();
        System.out.println(bl);

        char c = dis.readChar();
        System.out.println(c);

        dis.close();
        in.close();
    }
}
